import axios from 'axios'
export function postData (url, json, header = "{headers:{'Content-Type':'application/x-www-form-urlencoded'}}") {
  // console.log(json)
  // let postUrl = baseUrl + url
  return axios.post(url, JSON.stringify(json), header).then(res => {
    return res.data
  }).catch(err => {
    console.log(err)
  })
}
